Spotweb can be a bit of a pain to setup (especially the initial database population). Below I’ll explain how to get things running properly.
The instructions below you assume you have setup an Apache2, PHP, and MariaDB server.
Create a directory in which we’ll store the Spotweb site:
mkdir -p /var/vhosts/domain-name/www
Download and install the latest release of Spotweb:
cd /tmp wget https://github.com/spotweb/spotweb/archive/1.3.9.tar.gz tar xzf 1.3.9.tar.gz cd spotweb-1.3.9 cp * -R /var/vhosts/domain-name/www
Create an Apache configuration file for Spotweb:
nano /etc/apache2/sites-available/domain-name.conf
Populate with the settings below (assumes SSL):
<VirtualHost 0.0.0.0:80> ServerName domain-name Redirect / https://domain-name/ </VirtualHost> <VirtualHost *:443> ServerName domain-name SSLEngine on SSLCertificateFile /var/vhosts/domain-name/ssl/domain-name.crt SSLCertificateKeyFile /var/vhosts/domain-name/ssl/domain-name.key SSLCertificateChainFile /var/vhosts/domain-name/ssl/ca-cert.crt DocumentRoot "/var/vhosts/domain-name/www" <Directory /> AllowOverride All Require all granted </Directory> </VirtualHost> ExpiresActive On ExpiresDefault "access plus 4 hours" ExpiresByType application/javascript A900 ExpiresByType application/x-javascript A900 ExpiresByType text/javascript A900 ExpiresByType text/html A90 ExpiresByType text/xml A90 ExpiresByType text/css A900 ExpiresByType text/plain A62 ExpiresByType image/gif A14400 ExpiresByType image/jpg A14400 ExpiresByType image/jpeg A14400 ExpiresByType image/png A14400 ExpiresByType image/bmp A14400 ExpiresByType application/x-shockwave-flash A3600
Enable the newly created site:
a2ensite domain-name.conf
Enable the Apache module expires (this allows the ExpiresActive On
command to work):
a2enmod expires
Spotweb requires a few additional PHP modules, we need to download and enable them:
apt-get install php-curl php-zip php-xml php-gd
To ensure Spotweb uses the proper date and time we need to define our timezone in PHP (used by Apache):
nano /etc/php/7.0/apache2/php.ini
date.timezone = America/Edmonton
To ensure Spotweb uses the proper date and time we need to define our timezone in PHP (used by the command line):
nano /etc/php/7.0/cli/php.ini
date.timezone = America/Edmonton
Because our Spotweb Apache configuration file has the AllowOverride All directive, we can create an .htaccess file which will allow other scripts (Sonarr, Radarr, and Lidarr) to perform lookups:
nano /var/vhosts/domain-name/www/.htaccess
Populate as required:
RewriteEngine on RewriteCond %{REQUEST_URI} !api/ RewriteRule ^api/?$ index.php?page=newznabapi [QSA,L]
Now we need to change the owner of the Spotweb directory:
chown -R www-data:www-data /var/vhosts/domain-name
Restart Apache:
service apache2 restart
Complete the setup of Spotweb using a browser:
https://domain-name/install.php
After Spotweb is configured delete the installation file:
rm /var/vhosts/domain-name/www/install.php
Now we can populate Spotweb via the CLI:
php /var/vhosts/domain-name/www/retrieve.php
I typically run the above command on the console as it can take a few hours to complete.
Create a directory in which log files will be saved:
mkdir /var/vhosts/domain-name/log
Perform an ownership change (as any downloaded content and directories created was done by the user root and not www-data):
chown -R www-data:www-data /var/vhosts/domain-name
Create a cron job (scheduled task) for the user www-data. This allows Spotweb to self-update:
crontab -u www-data -e
In the example below the cron job will execute every 30 minutes:
*/30 * * * * /usr/bin/php /var/vhosts/domain-name/www/retrieve.php >> /var/vhosts/domain-name/log/retrieve.log
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
There is definately a lot to find out about this subject. I like all the points you made
Great information shared.. really enjoyed reading this post thank you author for sharing this post .. appreciated
For the reason that the admin of this site is working, no uncertainty very quickly it will be renowned, due to its quality contents.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Good post! We will be linking to this particularly great post on our site. Keep up the great writing
Very well presented. Every quote was awesome and thanks for sharing the content. Keep sharing and keep motivating others.
Cảm ơn ad, bài viết giúp mình tiết kiệm nhiều thời gian.
Rất tâm đắc với đoạn này… (trích nội dung)
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Trang web https://co88.org/ lừa đảo, nội dung đồi trụy
Trang web https://co88.org/ lừa đảo, nội dung đồi trụy
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://www.binance.com/id/register?ref=GJY4VW8W
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://www.binance.info/en/register-person?ref=JHQQKNKN
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Web giúp trải nghiệm người dùng trở nên tiện lợi và dễ dàng.
Web có tốc độ tải trang nhanh và ổn định.
Web mang lại trải nghiệm mượt mà, không bị lag.
Mình cảm thấy an tâm khi chơi game trên web.
Trải nghiệm chơi game trên web rất mượt mà và ổn định.
Giao diện web đơn giản nhưng tinh tế và trực quan.
Giao diện web hiện đại, bắt mắt và trực quan.
Mình cảm thấy thoải mái khi truy cập và chơi game trên web.
Mình thích cách web tối ưu hóa trải nghiệm người dùng.
Mình thích cách web cập nhật các trò chơi mới.
Các chức năng trên web vận hành mượt mà, ổn định.
Trải nghiệm trên web rất thú vị và tiện lợi.
Mình thích cách web trình bày các trò chơi và danh mục.
Web mang lại trải nghiệm thú vị và tiện lợi.
Các tính năng trên web hoạt động ổn định và hiệu quả.
Các chức năng trên web vận hành mượt mà, ổn định.
Mình cảm thấy an tâm khi sử dụng website.
Web hỗ trợ người dùng nhanh chóng và hiệu quả.
Web giúp thao tác chơi game nhanh chóng và tiện lợi.
Giao diện web đẹp, dễ thao tác và thân thiện.
Mình đánh giá cao trải nghiệm người dùng trên web.
Web giúp thao tác nhanh chóng và mượt mà.
Web lừa đảo, nội dung xấu độc
Mình đánh giá cao trải nghiệm người dùng trên web.
Trải nghiệm chơi game trên web mượt mà, không bị lỗi.
Web lừa đảo, nội dung xấu độc
Thông tin trên web rõ ràng, không rối mắt.
Web cung cấp thông tin hữu ích cho người chơi mới và cũ.
Web giúp người dùng thao tác nhanh chóng và tiện lợi.
Giao diện đẹp mắt, dễ nhìn và dễ thao tác.
Các danh mục trên web được bố trí hợp lý, dễ nhìn.
Web mang lại trải nghiệm thú vị và tiện lợi cho người dùng.
Your article helped me a lot, is there any more related content? Thanks!
Web lừa đảo, nội dung đồi trụy
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.